From 584f765789b4012cf838d2156e1d0edb9e80db67 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 29 Jan 2001 12:35:24 +0000 Subject: [PATCH] (x_draw_row_bitmaps): Delay obtaining HDC to avoid returning without releasing it. --- src/w32term.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/w32term.c b/src/w32term.c index 0d6f8c4bf20..6756cfa105f 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -898,7 +898,7 @@ x_draw_row_bitmaps (w, row) enum bitmap_type bitmap; struct face *face; int header_line_height = -1; - HDC hdc = get_frame_dc (f); + HDC hdc; xassert (interrupt_input_blocked); @@ -922,6 +922,8 @@ x_draw_row_bitmaps (w, row) else bitmap = NO_BITMAP; + hdc = get_frame_dc (f); + /* Clear flags area if no bitmap to draw or if bitmap doesn't fill the flags area. */ if (bitmap == NO_BITMAP -- 2.30.2